package com.itbooking.core.response;

import lombok.Data;

@Data
public class BusinessException extends RuntimeException {

    private Integer code;
    private String message;

    public BusinessException(ResponseCode responseCode){
        this.code =responseCode.getCode();
        this.message = responseCode.getDesc();
    }

}
